package org.main.userprovider.Dao;

import org.main.bean.POJO.PAddress;
import org.main.bean.POJO.Pgwc;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface PGWCDAO extends JpaRepository<Pgwc,Integer> {
    @Query(value = "select * from gwc where userId=:userId",nativeQuery = true)
    public List<Pgwc> getAlls(@Param("userId") int userId);
}
